#include "workerthread.h"
#include <QDebug>

int WorkerThread::taskAmount = 0;
void WorkerThread::run(){
    mutex.lock();
    taskAmount += 1;
    task();
    mutex.unlock();
    qDebug() << "task finished";
}

void WorkerThread::task(){
    mutex.lock();
    taskAmount += 2;
    mutex.unlock();

}

WorkerThread::WorkerThread()
{

}
